#ifndef __oled_H
#define __oled_H 

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>

// 定义OLED设备的I2C地址
#define OLED_I2C_ADDR 0x3C
extern int i2c_fd;
// 声明OLED设备操作函数
void oled_DrawPoint(uint8_t x, uint8_t y, uint8_t t);
void oled_ShowChar(uint8_t x, uint8_t y, uint8_t chr, uint8_t size1, uint8_t mode);
void oled_ShowString(uint8_t x, uint8_t y, uint8_t *chr, uint8_t size1, uint8_t mode);
void oled_ShowNum(uint8_t x, uint8_t y, uint32_t num, uint8_t len, uint8_t size1, uint8_t mode);
int oled_init(void);
void oled_Refresh(void);
void oled_Clear(void);
void oled_ShowTime(void);
void oled_ShowMesg(uint8_t *mesg, uint8_t len);
#endif

